<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui.css" />
</block>
<block name="stylecss">
<style type="text/css">
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
        <a href="{:U('Article/index')}">内容展示列表</a>
    </li>
    <li class="active">添加新内容</li>
</ul><!-- /.breadcrumb -->
</block>
<block name="content">
    <!-- 加载编辑器的容器 -->
    <form action="__CONTROLLER__/article_add" method="post" class="myformedit">
        <input type="hidden" name="action" value="article_add_action">
        <table class="table table-striped table-bordered table-hover" >
            <tr>
                <th>内容标题</th>
                <td><input type="text" style="font-weight:bold;text-align: center;width: 50%" name="article_title" placeholder="请输入标题。。。"class="ninputxt">
                <span class="Validform_checktip">必填项</span>
                </td>
            </tr>
            <tr>
                <th>内容类型</th>
                <td><select name="article_type"class="col-xs-6">
                        <option value="">-请选择-</option>
                        <option value="1">备考指南-电吉他</option>
                        <option value="2">备考指南-爵士鼓</option>
                        <option value="3">备考指南-电贝司</option>
                        <option value="4">备考指南-音乐基础</option>
                        <option value="5">关于迷笛</option>
                        <option value="6">其他</option>
                    </select>
                    <span class="Validform_checktip">必选项</span>
                </td>
            </tr>
            <tr>
                <th>等级</th>
                <td><select name="article_level"class="col-xs-6">
                        <option value="">-请选择-</option>
                        <option value="-1">无等级</option>
                        <option value="1">1级</option>
                        <option value="2">2级</option>
                        <option value="3">3级</option>
                        <option value="4">4级</option>
                        <option value="5">5级</option>
                        <option value="6">6级</option>
                        <option value="7">7级</option>
                        <option value="8">8级</option>
                        <option value="9">9级</option>
                    </select>
                    <span class="Validform_checktip">必选项</span>
                </td>
            </tr>
            <tr>
                <th>内容详情</th>
                <td><script id="container" name="content" type="text/plain"></script></td>
            </tr>
            <tr>
                <td colspan="2">
                    <button type="submit" class="btn btn-sm btn-pink" >提交</button> <span class="btn btn-sm" onClick="location.href='{:U('Article/index')}'">返回</span>
                </td>
            </tr>

        </table>

    </form>
    <!-- 配置文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>
</block>
<block name="scripts"></block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_baseinfo').addClass('active open');
        $('#menu_article_list').addClass('active');
    });
</script>
</block>